import request from '@/utils/request'
import { objectToFormData } from '@/utils/form'

export function findScenePoiList(params) {
  return request({
    url: '/51world/scene/src/poi/findList',
    method: 'get',
    params:params
  })
}

export function saveScenePoi(params) {
  return request({
    url: '/51world/scene/src/poi/save',
    method: 'post',
     data: objectToFormData(params)
  })
}

export function deleteScenePoi(params) {
  return request({
    url: '/51world/scene/src/poi/deleteById',
    method: 'get',
    params:params
  })
}


export function getUnSelectedPoiList(params) {
  return request({
    url: '/51world/scene/src/poi/getUnSelectedList',
    method: 'get',
    params:params
  })
}


export function saveCopyPois(data) {
  return request({
    url: '/51world/scene/src/poi/saveCopyPois',
    method: 'post',
    data
  })
}


export function findPois(data) {
  return request({
    url: '/51world/scene/src/poi/findPois',
    method: 'get',
    params:data
  })
}

export function getScenePoiById(data) {
  return request({
    url: '/51world/scene/src/poi/getById',
    method: 'get',
    params:data
  })
}
